<template>
  <li>
   <span>{{name}}</span>
  <button @click="btn(ind)">删除</button>
  </li>
</template>

<script>
export default {
   props: ['name','ind'],

   methods: {
    btn(ind){
      this.$emit('click',ind)
    }
   }
}
</script>

<style>
   
</style>